﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BeforLogin.aspx.cs" Inherits="Movie.web.BeforLogin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        *{ margin:0; padding:0;}
        body{ width:900px; height:1200px;}
        #ALL{ margin:0 auto; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="ALL">
    <pre>
        <asp:Label ID="Label1" runat="server" Text="用户名"></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:RequiredFieldValidator
            ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入用户名！" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>


        <asp:Label ID="Label2" runat="server" Text="密码"></asp:Label>
        <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
        
                
        <asp:Label ID="Label3" runat="server" Text="确认密码"></asp:Label>
        <asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox><asp:CompareValidator
            ID="CompareValidator1" runat="server" ErrorMessage="两次密码输入不一致！" ControlToCompare="TextBox2" ControlToValidate="TextBox3"></asp:CompareValidator>

        <asp:Label ID="Label4" runat="server" Text="性别"></asp:Label>
        <asp:RadioButton ID="RadioButton1" runat="server" GroupName="Sex"  Text="男"/><asp:RadioButton ID="RadioButton2" runat="server" GroupName="Sex" Text="女"/>       
        <asp:Label ID="Label5" runat="server" Text="手机号"></asp:Label>
        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>

        <asp:Label ID="Label6" runat="server" Text="头像"></asp:Label>
        <asp:FileUpload ID="FileUpload1" runat="server" />
        
        <%--<asp:Image ID="Image1" runat="server" />--%>

        <asp:Label ID="Label7" runat="server" Text="邮箱"></asp:Label>
        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox><asp:RegularExpressionValidator
            ID="RegularExpressionValidator1" runat="server" 
            ErrorMessage="邮箱格式错误！" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ControlToValidate="TextBox5"></asp:RegularExpressionValidator>

        <asp:Button ID="Button1" runat="server" Text="注册" onclick="Button1_Click" />  
      
      
      
    </pre>
    </div>
    </form>
</body>
</html>
